lcEntGetDist Home

Retrieves a point on entity, nearest to given off-curve point.
The function works with the following entity types: Line, Polyline, Arc, Circle

 double lcEntGetDist (
   HANDLE hEnt,
   double X,
   double Y,
   double* pX2,
   double* pY2,
   double* pDist
 );

Parameters
hEnt
  Handle to an entity.
X Y
  Off-curve point.
pX2 pY2
  Pointers to variables that will receive coordinates of the found on-curve point (which is nearest to X,Y)
pDist
  Pointer to variable that will receive the distance from beginning of a polyline to found point.

Return Value

  Distance between given point (X,Y) and found point (X2,Y2).

See Also

  Code sample,   lcEntGetPoint